package cn.edu.xmut.chen.zhlg.zhlg.message.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

@Data
@ApiModel(description = "私聊会话实体")
public class PrivateChat {
    @ApiModelProperty(value = "会话ID", example = "chat_123")
    private String id;
    
    @ApiModelProperty(value = "用户1ID(较小的ID)", example = "user_1")
    private String user1Id;
    
    @ApiModelProperty(value = "用户2ID(较大的ID)", example = "user_2")
    private String user2Id;
    
    @ApiModelProperty(value = "最后一条消息ID", example = "msg_123")
    private String lastMessageId;
    
    @ApiModelProperty(value = "最后消息时间", example = "2023-01-01T00:00:00")
    private Date lastMessageTime;
    
    @ApiModelProperty(value = "创建时间", example = "2023-01-01T00:00:00")
    private Date createTime;
}